package com.moyu.shopapp.service;

import com.moyu.shopapp.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.moyu.shopapp.entity.vo.CartGoodsVO;

import java.util.List;

/**
* @author ZJF
* @description 针对表【order】的数据库操作Service
* @createDate 2023-12-01 16:32:18
*/
public interface OrderService extends IService<Order> {
    String addOrder(String token, double totalPrice, List<CartGoodsVO> cartGoodsVOList);

    List<Order> getOrderByUserId(String token);

    String cancelOrder(String token,int orderId);

    String updateOrderStatus(int orderId);
}
